import Vue from 'vue'
// import 'lib-flexible'
import App from './App.vue'
import '@base/style/iconfont.css'
import '@base/style/base.css'
import router from '@core/router'
import store from '@base/store'
// import api from '@base/api'
import '@base/components'
// import { Button } from 'element-ui'
import "babel-polyfill"
import promise from "es6-promise"
import 'zrender/lib/svg/svg'
promise.polyfill()

// Vue.use(Button)
// console.log(api)
// console.log(store)

let echarts = require('echarts/lib/echarts')

require('echarts/lib/chart/line')
require('echarts/lib/chart/bar')
require('echarts/lib/chart/pie')
require('echarts/lib/chart/pictorialBar')
require('echarts/lib/chart/gauge')
require('echarts/lib/chart/map')

require('echarts/lib/component/tooltip')
require('echarts/lib/component/toolbox')
require('echarts/lib/component/title')
require('echarts/lib/component/legend')
require('echarts/lib/component/markPoint')
require('echarts/lib/component/markArea')
require('echarts/lib/component/markLine')
require('echarts/lib/component/graphic')
require('echarts/lib/component/grid')
require('echarts/lib/component/polar') // 若园区生态进度条不用echarts可注释此组件
require('echarts/lib/component/geo')
require('echarts/lib/component/visualMap')

Vue.prototype.$echarts = echarts

Vue.config.productionTip = false
new Vue({
  el: '#app',
  render: h => h(App),
  store,
  router,
  // mounted () { /* 分发预渲染事件 */
  //   document.dispatchEvent(new Event('render-event'))
  // }
})
